package com.xrui.hbase;

import java.io.IOException;

/**
 * Interface for table writer factories.
 *
 * Use <code>Table.getWriterFactory()</code> to create a writer.
 */
public interface WriterFactory {

    /**
     * Opens a new TableWriter for the Table associated with this writer factory.
     * The caller of this method is responsible for closing the writer.
     *
     * @return A new TableWriter.
     * @throws IOException in case of an error.
     */
    TableWriter openTableWriter() throws IOException;
}
